import com.bwf.obj01.Student;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/9 13:37
 * @Copyright 博为峰
 */
public class Test01 {
    public static void main(String[] args) {
        //创建对象, Student(自定义类型，引用类型，类类型，复杂数据类型)
//        com.bwf.obj01.Student s1 = new com.bwf.obj01.Student();
        Student s1 = new Student();
        s1.name = "张三";
        s1.age = 20;

//        com.bwf.obj01.Student s2 = new com.bwf.obj01.Student();
        Student s2 = new Student();
        s2.name = "李四";
        s2.age = 30;
        s2.study();

        for (int i = 0; i < 5; i++) {//i 局部变量
            System.out.println("i = " + i);
        }


        {//局部代码块
            int a = 6;
            System.out.println("a = " + a);
        }
    }
}
